from django.contrib import admin
from .models import *



class New_memberAdmin(admin.ModelAdmin):
    # 定制哪些字段需要展示
    list_display = ('id', 'name', 'sex',"major","department","phone_number","email","expectation","status")

    list_filter = ('sex', 'department',"status" ) 
    
    list_editable = ('status',"department" )
    
    search_fields = ['name']

    empty_value_display = 'NA'


# admin.site.register(Department ,DepartmentAdmin)
admin.site.register(NewMember,New_memberAdmin)

# admin.site.register(EmailVerifyRecord)
